package com.windgo.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author doublec
 * @since 2022/10/12 11:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RespInfoVO {
    int errno;
    String errmsg;

    public static RespInfoVO ok() {
        return new RespInfoVO(0, "成功");
    }

    public static RespInfoVO ok(int errno, String errmsg) {
        return new RespInfoVO(errno, errmsg);
    }
}
